<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<c:forEach items="${fundFlowList}" var="fundFlow">
	<tr>
		<td class="td" style="padding-left:10px;">${fundFlow.year }/${fundFlow.month }/${fundFlow.day }</td>
		<td class="td">
			<c:if test="${fundFlow.type == 10 }">
				<img src="${staticPath}/images/chongzhi.png">
			</c:if>
			<c:if test="${fundFlow.type == 20}">
				<img src="${staticPath}/images/tixian.png">
			</c:if>
			<c:if test="${fundFlow.type == 21}">
				<img src="${staticPath}/images/tixian_fail.png">
			</c:if>
			<c:if test="${fundFlow.type == 13 }">
				<img src="${staticPath}/images/tuandui.png">
			</c:if>
			<c:if test="${fundFlow.type == 30 || fundFlow.type == 31 || fundFlow.type == 50 || fundFlow.type == 51 || fundFlow.type == 70 || fundFlow.type == 71}">
				<img src="${fundFlow.member.avatar }" onerror="this.src='${staticPath}/images/nologin.png'">
			</c:if>
			<c:if test="${fundFlow.type == 60 || fundFlow.type == 61 || fundFlow.type == 11 || fundFlow.type == 12}">
				<img src="${fundFlow.fromMember.avatar }" onerror="this.src='${staticPath}/images/nologin.png'">
			</c:if>
		</td>
		<td class="td">
			<p>
				<c:if test="${fundFlow.type == 50 || fundFlow.type == 51 || fundFlow.type == 60 || fundFlow.type == 61 || fundFlow.type == 70}">
					${fundFlow.amount }积分
				</c:if>
				<c:if test="${fundFlow.type != 50 && fundFlow.type != 51 && fundFlow.type != 60 && fundFlow.type != 61 && fundFlow.type != 70}">
					￥<fmt:formatNumber value="${fundFlow.amount * 0.01}" pattern="#,###.##" />
				</c:if>
			</p>
			<c:if test="${fundFlow.type == 10 }">
				<p>充值</p>
			</c:if>
			<c:if test="${fundFlow.type == 11}">
				<p>会员分佣</p>
			</c:if>
			<c:if test="${fundFlow.type == 12}">
				<p>订单分佣</p>
			</c:if>
			<c:if test="${fundFlow.type == 13 }">
				<p>团队奖励</p>
			</c:if>
			<c:if test="${fundFlow.type == 20}">
				<p>提现</p>
			</c:if>
			<c:if test="${fundFlow.type == 21}">
				<p>提现失败</p>
			</c:if>
			<c:if test="${fundFlow.type == 30}">
				<p>购买商品</p>
			</c:if>
			<c:if test="${fundFlow.type == 31}">
				<p>购买商品退款</p>
			</c:if>
			<c:if test="${fundFlow.type == 50 || fundFlow.type == 51}">
				<p>订单积分</p>
			</c:if>
			<c:if test="${fundFlow.type == 60}">
				<p>推广积分</p>
			</c:if>
			<c:if test="${fundFlow.type == 61}">
				<p>返佣积分</p>
			</c:if>
			<c:if test="${fundFlow.type == 70 || fundFlow.type == 71}">
				<p>积分兑换现金</p>
			</c:if>
		</td>
		<td class="td">
			<c:if test="${fundFlow.code != null }">
				<c:if test="${fundFlow.code.length() > 8 }">
					${fn:substring(fundFlow.code, 0, 4)}****${fn:substring(fundFlow.code, fundFlow.code.length() - 5, fundFlow.code.length() - 1)}
				</c:if>
				<c:if test="${fundFlow.code.length() <= 8 }">
					${fn:substring(fundFlow.code, 0, 4)}****
				</c:if>
			</c:if>
		</td>
	</tr>
</c:forEach>
<c:if test="${over == true }">
	<input type="hidden" id="over" name="over" value="${over }" />
</c:if>
